<?php
class Index_Data_Sendemail implements Index_Data_Mainable{
    
    private $core_cotroller_mailsender;
    
    public function __construct() {
        $this->core_cotroller_mailsender = new Core_Controller_Mailsender;
    }
    
    public function main(array $variables = null) {
        $variables['current_email'] = "andrzej@itfactor.pl";
        $variables['user_subject'] = "Wiadomość ze strony http://itfactor.pl";
        $variables['user_message'] = "Użytkownik ".$variables['post']['form-name']." o adresie ".$variables['post']['form-email'].", posiadający numer telefonu ".$variables['post']['form-phone']." napisał wiadomość:<br>".$variables['post']['form-message'];
        return $this->core_cotroller_mailsender->main($variables);
    }
}
